package com.matt.foundation.vo;

import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/28
 * *******************************
 */
@Data
public class RoomListVo {
    private String id;

    private String name;

    private String url;

    public static RoomListVo of(Object[] objects) {

        RoomListVo vo = new RoomListVo();
        vo.setId(String.valueOf(objects[0]));
        vo.setName(String.valueOf(objects[1]));
        vo.setUrl(objects[2] ==null?"":objects[2].toString());
        return vo;
    }
}